package obj;

/**
 * @author:WIN10
 * @date:2022/1/15
 * @describe:狗子类
 */
public class Dog extends Animal {

    @Override
    public void eat() {
        System.out.println("狗狗啃骨头...");
    }

    /**
     * 调用父类的构造方法
     *
     * @param name
     */
    public Dog(String name) {
        super(name);
    }
}
